package ma.belsoft.syga.model;

import org.appfuse.model.BaseObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "modele")
public class Modele extends BaseObject {

	/**
		 * 
		 */
	private static final long serialVersionUID = -6371360890786278982L;

	/**
		 * 
		 */

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "modele_id")
	private Long id;

	@Column(name = "libelle_Modele")
	private String libelleModele;
	
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="marque_id")
	private Marque marque;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLibelleModele() {
		return libelleModele;
	}

	public void setLibelleModele(String libelleModele) {
		this.libelleModele = libelleModele;
	}

	public Modele() {

	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	public void setMarque(Marque marque) {
		this.marque = marque;
	}

	public Marque getMarque() {
		return marque;
	}

}
